<template>
  <div class="about-page">
    <!-- 返回按钮 -->
    <button class="back-button" @click="goBack">
      <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
        <line x1="19" y1="12" x2="5" y2="12"></line>
        <polyline points="12 19 5 12 12 5"></polyline>
      </svg>
      返回
    </button>

    <!-- 主要内容 -->
    <div class="about-container">
      <div class="about-header">
        <h1>关于<span>洛页工具箱</span></h1>
        <p class="subtitle">创新 · 专业 · 可靠</p>
      </div>

      <div class="about-content">
        <div class="about-card">
          <div class="card-icon">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <circle cx="12" cy="12" r="10"></circle>
              <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
              <line x1="12" y1="17" x2="12.01" y2="17"></line>
            </svg>
          </div>
          <h2>我们的使命</h2>
          <p>我们致力于通过技术创新，为用户提供简单高效的在线工具解决方案，帮助个人和企业提升工作效率。</p>
        </div>

        <div class="about-card">
          <div class="card-icon">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path>
              <circle cx="9" cy="7" r="4"></circle>
              <path d="M23 21v-2a4 4 0 0 0-3-3.87"></path>
              <path d="M16 3.13a4 4 0 0 1 0 7.75"></path>
            </svg>
          </div>
          <h2>我们的团队</h2>
          <p>由资深开发者和设计师组成的专业团队，拥有多年的互联网产品开发经验，专注于用户体验和技术创新。</p>
        </div>

        <div class="about-card">
          <div class="card-icon">
            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
              <polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline>
            </svg>
          </div>
          <h2>我们的愿景</h2>
          <p>成为最受用户信赖的在线工具平台，通过持续创新和技术升级，为用户创造更多价值。</p>
        </div>
      </div>

      <div class="stats-section">
        <div class="stat-item">
          <div class="stat-number">100+</div>
          <div class="stat-label">实用工具</div>
        </div>
        <div class="stat-item">
          <div class="stat-number">50万+</div>
          <div class="stat-label">用户信任</div>
        </div>
        <div class="stat-item">
          <div class="stat-number">2018</div>
          <div class="stat-label">创立年份</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'About',
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>
.about-page {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: #f8f9fa;
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

/* 返回按钮样式 */
.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #2d66b1;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.back-button:hover {
  background-color: rgba(45, 102, 177, 0.1);
  transform: translateX(-3px);
}

.back-button svg {
  width: 18px;
  height: 18px;
}

/* 关于容器 */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部样式 */
.about-header {
  text-align: center;
  margin-bottom: 50px;
}

.about-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 15px;
}

.about-header h1 span {
  color: #2d66b1;
}

.about-header .subtitle {
  font-size: 1.2rem;
  color: #666;
  font-weight: 400;
}

/* 内容卡片 */
.about-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.about-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: rgba(45, 102, 177, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: #2d66b1;
}

.about-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #2d3748;
}

.about-card p {
  line-height: 1.6;
  color: #555;
}

/* 统计数据部分 */
.stats-section {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  background: white;
  border-radius: 12px;
  padding: 40px 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2d66b1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .about-header h1 {
    font-size: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .stats-section {
    flex-direction: column;
    gap: 30px;
  }
  
  .stat-item {
    margin-bottom: 20px;
  }
}
</style>